<template>
  <view>
    <view>view-1 容器组件</view>
    <view class="smart-item" @click="goDetailPage('view')">text>view视图</text></view>
    <view class="smart-item" @click="goDetailPage('scroll-view')">text>scroll-view视图</text></view>
    <view class="smart-item" @click="goDetailPage('swiper')">text>swiper视图</text></view>

    <view>view-2 基础内容</view>
    <view class="smart-item" @click="goDetailPage('text')">text>text文本</text></view>
    <view class="smart-item" @click="goDetailPage('rich-text')">text>rich-text富文本</text></view>
    <view class="smart-item" @click="goDetailPage('progress')">text>progress进度条</text></view>

    <view>view-3 表单组件</view>
    <view class="smart-item" @click="goDetailPage('button')">button按钮</view>
    <view class="smart-item" @click="goDetailPage('radio')">radio单选按钮</view>
    <view class="smart-item" @click="goDetailPage('picker')">picker选择列表</view>
    <view class="smart-item" @click="goDetailPage('slider')">slider滑块</view>
    <view class="smart-item" @click="goDetailPage('switch')">switch开关</view>
    <view class="smart-item" @click="goDetailPage('textarea')">textarea多行文本</view>
    <view class="smart-item" @click="goDetailPage('checkbox')">checkbox多选框</view>
    <view class="smart-item" @click="goDetailPage('form')">form表单</view>
  </view>
  <view>
    <view>view-4 媒体组件</view>
    <view class="smart-item" @click="goDetailPage('image')">image图片</view>
    <view class="smart-item" @click="goDetailPage('audio')">audio音频</view>
    <view class="smart-item" @click="goDetailPage('video')">video视频</view>
  </view>
  <view>
    <view>view-5 地图组件</view>
    <view class="smart-item" @click="goDetailPage('map')">map地图</view>
  </view>
  <view>
    <view>view-6 导航组件</view>
    <view class="smart-item" @click="goDetailPage('navigator')">navigator导航组件</view>
  </view>
</template>

<script>
export default {
  data() {
    return {
    }
  },
  methods: {
    goDetailPage(componentName) {
      // 这里可以编写跳转到对应组件详情页的逻辑
      console.log(`将要跳转到${componentName}的详情页`);
    }
  }
}
</script>